{% extends 'base/layout.html' %}

{% block content_header %}
 {% include 'widget/header.html' %}
 {% endblock %}


 {% block content_main_before%}
 {% endblock %}

 {% block content_main %}
<div class="row page-content">


  <div class="col-xs-12 bg-white round-corner">

    {% include '../widget/page_content.html' %}

  </div>


  {# force remove #revision-toc from #content_main of parent #}
      <script>
        $('#revision-toc').remove();
      </script>

    </div> {# /.col- #}

    {# relocate #revision-toc #}
    <div class="col-lg-2 col-md-3 revision-toc-container hidden-sm hidden-xs">
      <div id="revision-toc" class="revision-toc affix" data-spy="" data-offset-top="80">
        <div id="revision-toc-content" class="revision-toc-content"></div>
      </div>
    </div> {# /.col- #}



  <div class="row page-list bg-white round-corner p-t-10 m-20 m-b-30 {% if page.isPortal() %}m-t-30{% endif %}">
    <div class="col-xs-12">
      {% include '../widget/page_list_and_timeline_kibela.html' %}
    </div>
  </div>
{% endblock %}


{% block content_footer %}
  {% if page %}
    {% include '../widget/page_attachments.html' %}
  {% endif%}
{% endblock %}


{% block body_end %}
<div id="presentation-layer" class="fullscreen-layer">
  <div id="presentation-container"></div>
</div>
<div id="crowi-modals">
  {% include '../widget/page_modals.html' %}
    {% include '../modal/what_is_portal.html' %}
  {% include '../modal/unportalize.html' %}
</div>
{% endblock %}
